﻿using Bricks.Component.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Bricks.Business.Models.WorkerManagement
{
    public class SectionSalary : EntityBase<Guid>
    {
        public SectionSalary()
        {
            ID = GuidHelper.NewGuid();
        }

        [Description("流程编码")]
        public string FlowCode { get; set; }

        [Description("项目ID")]
        public Guid ProjectID { get; set; }

        [Description("合同类型")]
        public string ContractType { get; set; }

        [Description("标段ID")]
        public Guid ContractID { get; set; }

        [Description("年")]
        public string Year { get; set; }

        [Description("月")]
        public string Month { get; set; }

        [Description("附件")]
        public string Attachment { get; set; }

        public DateTime RequestDate { get; set; }

        //申请人
        public string RequestPerson { get; set; }

        //流转状态：
        //0：申请；1：流转；2：结束；3：终止；4：回退
        public string HandleState { get; set; }

        public string AssociatedNodeCode { get; set; }

        public string LastUpdateUserDepartment { get; set; }

        public string LastUpdateUser { get; set; }

        public DateTime? LastUpdateTime { get; set; }

        //保存状态，为了判断是否能回退，只要点了保存按钮就更新这个字段为“1”
        public string SaveState { get; set; }
    }
}
